import request from "@/utils/request";

// 获取第三方列表
export function listAllApi(data, headers) {
  return request({
    url: "/pool/mj/account/query",
    method: "post",
    data,
    headers
  });
}

// 获取列表
export function listApi(params) {
  return request({
    url: "/consumption/queryPage",
    method: "get",
    params
  });
}

// 新增数据
export function createApi(data) {
  return request({
    url: "/consumption/create",
    method: "post",
    data
  });
}

// 修改数据
export function updateApi(data) {
  return request({
    url: "/consumption/update",
    method: "put",
    data
  });
}

// 删除数据
export function deleteApi(keys) {
  return request({
    url: "/consumption/remove",
    method: "delete",
    params: {
      keys,
    },
  });
}